//
//  TKIMRequestService.h
//  TKIM_首创
//
//  Created by macpro on 15/12/14.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "TKIMNetHelper.h"


@interface TKIMRequestService : NSObject
/**
 *  @author zrs, 15-12-21 11:12:41
 *
 *  @brief 获取公众号菜单
 *
 *  @param username 用户名
 *  @param callBack 回调
 */
-(void)getOfficialMenusWithUsername:(NSString *)username callBack:(TKIMCallBack)callBack;

/**
 *  @author zrs, 15-12-21 11:12:07
 *
 *  @brief 获得app最新版本信息
 *
 *  @param callBack 回调
 */
-(void)getNewestVersionCallBack:(TKIMCallBack)callBack;

/**
 *  @author zrs, 15-12-21 11:12:25
 *
 *  @brief 用户发送意见反馈
 *
 *  @param username 用户名
 *  @param message  用户意见
 *  @param callBack 发送的回调
 */
-(void)sendFeedBackMessageWithUsername:(NSString *)username content:(NSString *)message callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-12-29 11:12:53
 *
 *  @brief 手机联系人角色查询
 *
 *  @param username       用户名
 *  @param contactsMobile 所有手机联系人电话号码信息  中间用,分隔
 *  @param callBack       回调
 */
-(void)searchContactRoleWithUsername:(NSString *)username contactsMobile:(NSString *)contactsMobile callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-02-29 10:02:17
 *
 *  @brief 查询好友资料
 *
 *  @param user
 *  @param callBack
 */
-(void)viewFriendInformationWithUser:(TKIMUser *)user callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-02-29 10:02:17
 *
 *  @brief 查询好友资料
 *
 *  @param user
 *  @param callBack
 */
-(void)viewFriendInformationWithoutCacheWithUser:(TKIMUser *)user callBack:(TKIMCallBack)callBack;

/**
 *  @author zhoufz, 16-07-18 14:07:38
 *
 *  @brief 查询好友标签
 *
 *  @param user
 *  @param friendUser
 *  @param callBack
 */
-(void)viewFriendLabelWithLoginUser:(TKIMUser *)user andFriendUser:(TKIMUser *)friendUser callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-02-29 10:02:17
 *
 *  @brief 给好友点赞
 *
 *  @param friendName 朋友的名字
 *  @param callBack
 */
-(void)thumbUpWithFriendName:(NSString *)friendName callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-02-29 18:02:30
 *
 *  @brief 给投顾或经理贴标签
 *
 *  @param friendName    对方的名字
 *  @param labelidString  标签的id 多个标签中间用,隔开
 *  @param callBack
 */
-(void)labelingWithUserName:(NSString *)username FriendName:(NSString *)friendName labelid:(NSString *)labelidString callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-01 15:03:43
 *
 *  @brief 查询所有可贴标签
 */
-(void)searchAllAvailabelLabelsCallBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-01 19:03:57
 *
 *  @brief 评分
 *
 *  @param friendName 对方的名字
 *  @param score      评分数
 */
-(void)scoreWithFriendName:(NSString *)friendName score:(NSInteger)score callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-05 14:03:18
 *
 *  @brief 修改好友的备注
 *
 *  @param friendName 好友对象
 *  @param nickname   修改的备注
 *  @param callBack
 */
-(void)modifyFriendRemarkWithFriendName:(TKIMUser *)user remark:(NSString *)remark callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-07 14:03:27
 *
 *  @brief 添加好友到新分组
 *
 *  @param username   用户名
 *  @param friendName 朋友对象
 *  @param groupName  新的分组名
 *  @param callBack
 */
-(void)addFriendToNewGroupWithUsername:(NSString *)username friend:(TKIMUser *)friend groupName:(NSString *)groupName callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-07 16:03:32
 *
 *  @brief 添加好友到指定组
 *
 *  @param username 用户名
 *  @param friend   好友对象
 *  @param groupId  指定组ID
 */
-(void)addFriendToDesignGroupWithUsername:(NSString *)username friend:(TKIMUser *)friend designGroup:(TKIMUserGroup *)designGroup callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-07 16:03:32
 *
 *  @brief 删除好友从指定组
 *
 *  @param username 用户名
 *  @param friend   好友对象
 *  @param groupId  指定组ID
 */
-(void)removeFriendFromDesignGroupWithUsername:(NSString *)username friend:(TKIMUser *)friend designGroup:(TKIMUserGroup *)designGroup callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-02 10:03:54
 *
 *  @brief 群发消息
 *
 *  @param target  发送的对象userID用,隔开
 *  @param message 消息
 */
-(void)sendGroupMessageToSpecialFriends:(NSString *)target message:(TKIMMessage *)message callBack:(TKIMCallBack)callBack;

/**
 *  @author zhengrs, 16-03-08 00:03:20
 *
 *  @brief 查询群助手历史记录
 *
 *  @param username  用户名称
 *  @param beginDate 起始日期 日期格式：20160301
 *  @param endDate   终止日期 日期格式：20160301
 */
-(void)queryGroupAssistHistoryMessageWithUsername:(NSString *)username beginDate:(NSString *)beginDate endDate:(NSString *)endDate pageNo:(NSInteger)pageNo pageSize:(NSInteger)pageSize callBack:(TKIMCallBack)callBack;

/**
 *  @Author zhoufz, 16-4-18 21:00:51
 *
 *  @brief  查询历史重要日期提醒
 *
 */
-(void)queryHisImportantDateTipWithUsername:(NSString *)username beginDate:(NSString *)beginDate endDate:(NSString *)endDate pageNo:(NSInteger)pageNo pageSize:(NSInteger)pageSize callBack:(TKIMCallBack)callBack;

/**
 *  @Author lpm, 15-05-11 11:05:06
 *
 *  获得当前登录用户信息
 *
 *  @param tokenString
 */
-(void)getLoginUserInfoWithUserName:(NSString *)userName callBack:(TKIMCallBack)callBack;

/**
 *  @author zhoufz, 16-05-26 18:05:40
 *
 *  @brief 移动分组
 *
 *  @param groupId
 *  @param callBack
 */
-(void)moveGroupWithGroupId:(NSString *)groupId callBack:(TKIMCallBack)callBack;

/**
*  @brief 获取ebond ofid
*  @param targetId targetId
*  @param targetName targetName
*  @param appid appid
*/
+ (void) getEbondOfidWithTargetId:(NSString *)targetId targetName:(NSString *)targetName appid:(NSString *)appid callBack:(void(^)(NSData *data, NSError *error))callBack;


@end
